﻿using Microsoft.AspNetCore.Builder;
using System;
using System.Collections.Generic;
using System.Text;

namespace JX.Infrastructure.Middleware
{
	/// <summary>
	/// 
	/// </summary>
	public static class BuilderExtensions
	{
		/// <summary>
		/// 使用图片防盗链中间件
		/// </summary>
		/// <param name="app"></param>
		/// <returns></returns>
		public static IApplicationBuilder UseHotlinkingPreventionMiddleware(this IApplicationBuilder app)
		{
			return app.UseMiddleware<HotlinkingPreventionMiddleware>();
		}
	}
}
